_e_n_a_b_l_e expects either TTTTRRRRUUUUEEEE or FFFFAAAALLLLSSSSEEEE, enabling or disabling stencil
operation. When stencil operation is disabled (the default),
the values of the subsequent six parameters are ignored,
_r_e_f expects a reference value used by the stencil compare function.
_f_u_n_c expects one of eight flags specifying the stencil comparison
function. These flags are SSSSFFFF____NNNNEEEEVVVVEEEERRRR, SSSSFFFF____LLLLEEEESSSSSSSS, SSSSFFFF____EEEEQQQQUUUUAAAALLLL,
SSSSFFFF____LLLLEEEEQQQQUUUUAAAALLLL, SSSSFFFF____GGGGRRRREEEEAAAATTTTEEEERRRR, SSSSFFFF____NNNNOOOOTTTTEEEEQQQQUUUUAAAALLLL, SSSSFFFF____GGGGEEEEQQQQUUUUAAAALLLL, and SSSSFFFF____AAAALLLLWWWWAAAAYYYYSSSS.
_m_a_s_k expects a mask specifying which stencil bitplanes are
significant during the comparison operation.
_f_a_i_l expects one of six flags indicating which stencil operation
should be performed should the stencil test fail. The values
are SSSSTTTT____KKKKEEEEEEEEPPPP, SSSSTTTT____ZZZZEEEERRRROOOO, SSSSTTTT____RRRREEEEPPPPLLLLAAAACCCCEEEE, SSSSTTTT____IIIINNNNCCCCRRRR, SSSSTTTT____DDDDEEEECCCCRRRR, and
SSSSTTTT____IIIINNNNVVVVEEEERRRRTTTT.
_p_a_s_s expects one of six flags indicating which stencil operation
should be performed should the stencil test pass, and the z-
buffer test (if z-buffering is enabled) fail. The values are
SSSSTTTT____KKKKEEEEEEEEPPPP, SSSSTTTT____ZZZZEEEERRRROOOO, SSSSTTTT____RRRREEEEPPPPLLLLAAAACCCCEEEE, SSSSTTTT____IIIINNNNCCCCRRRR, SSSSTTTT____DDDDEEEECCCCRRRR, and SSSSTTTT____IIIINNNNVVVVEEEERRRRTTTT.
_z_p_a_s_s expects one of six flags indicating which stencil operation
should be performed should the stencil and z-buffer tests pass.
Its value is not significant when the z-buffer is not enabled.
The values are SSSSTTTT____KKKKEEEEEEEEPPPP, SSSSTTTT____ZZZZEEEERRRROOOO, SSSSTTTT____RRRREEEEPPPPLLLLAAAACCCCEEEE, SSSSTTTT____IIIINNNNCCCCRRRR, SSSSTTTT____DDDDEEEECCCCRRRR,
and SSSSTTTT____IIIINNNNVVVVEEEERRRRTTTT.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
sssstttteeeennnncccciiiillll operates as a superior z-buffer test with a different algorithm.
When sssstttteeeennnncccciiiillll is enabled, each pixel write first tests the stencil
bitplanes. Both the color and z-buffer bitplane writes, as well as the
write of the stencil bitplanes, are conditioned by the stencil test.
sssstttteeeennnncccciiiillll operation can be enabled only if stencil bitplanes are present
(see sssstttteeeennnnssssiiiizzzzeeee). Stencil bitplanes are present only in the normal
framebuffer, so sssstttteeeennnncccciiiillll should be called only while draw mode is